package com.leigq.www.mybatisplusstudy.domain.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.leigq.www.mybatisplusstudy.domain.entity.Staff;
import com.leigq.www.mybatisplusstudy.domain.mapper.base.MyBaseMapper;
import com.leigq.www.mybatisplusstudy.vo.ListStaffsCustomVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by Mybatis Generator 2019/06/14
 * @author leiguoqing
 */
@Mapper
public interface StaffMapper extends MyBaseMapper<Staff> {

    /**
     * 查询员工列表，使用 Wrapper 自定义SQL
     *
     * @param wrapper the wrapper
     * @return the list
     */
    IPage<ListStaffsCustomVO> listStaffsCustom(@Param("page") Page page, @Param(Constants.WRAPPER) Wrapper wrapper);
}